package com.zld.smarket.dao;

import com.zld.smarket.dto.GoodsList;
import com.zld.smarket.pojo.Goods;
import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Long goodsId);

    int insert(Goods record);

    Goods selectByPrimaryKey(Long goodsId);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);

    List<GoodsList> selectAllAndPage(Integer page, Integer limit);

    Long countGoods();

    List<GoodsList> search(String s, Integer page, Integer limit);

    Long countGoodsbyno(Long goodsNo);

    List<Long> getgoodsno();
}